package StringBuilder;

/**
 * ClassName:StringBuilderText002
 * Package:StringBuilder
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/16-18:18
 * @Version:v1.0
 */
public class StringBuilderText002 {
    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder();
//        sb.append("aaaa");
//        sb.append("bbbb");
//        sb.append("cccc");
//        sb.append("dddd");
        sb.append("aaaa").append("bbbb").append("cccc").append("dddd");
        System.out.println(sb);

        //再把StringBuilder变回字符串
        String str = sb.toString();
        System.out.println(str);
    }
}
